home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / emacs-18.59src.lha / emacs-18.59 / amiga / contrib / chopps / rexx / sayval.rexx < prev   
Encoding:
OS/2 REXX Batch file  |  1993-03-19  |  554 b   |  30 lines

  1. /* sayval.rexx
  2.  * -----------
  3.  *  -ch3/18/93.
  4.  *
  5.  *  call from dos prompt:
  6.  *
  7.  *  sayval <some-emacs-symbol-name>
  8.  *
  9.  * ex:  sayval amiga-emacs-iconified
  10.  * 
  11.  *  Christian E. Hopps.
  12.  */
  13.  
  14. /* get the first arg from the command line and store in symbol */
  15. parse arg symbol
  16.  
  17. /* address the emacs port */
  18. address EMACS1
  19.  
  20. /* ask for full results */
  21. options results 
  22.  
  23. /* construct lisp inside emacs this will look like this
  24.  *
  25.  * (symbol-value 'some-variable-name) */
  26.  
  27. /* call function by quoting the lisp code. */
  28. "(symbol-value '" || symbol || ")"
  29. say RESULT
  30.